Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] account_statement_import_sheet_file: Migration to 18.0 #747

Open
wants to merge 57 commits into
base: 18.0
Choose a base branch
from

Conversation

feg-adhoc
Copy link

No description provided.

@feg-adhoc feg-adhoc force-pushed the 18.0-mig-account_statement_import_sheet_file branch 5 times, most recently from 74d9ad5 to 3145831 Compare December 23, 2024 14:35
@tate11
Copy link

tate11 commented Jan 15, 2025

Thank you for your effort. Gives a date error
time data '' does not match format '%d/%m/%Y'

Garanti Bankası 0 1 comma dot comma " %d/%m/%Y Date simple_value Amount Label

primes2h and others added 23 commits February 4, 2025 08:44
[FIX] Mostly currency-related fixes

[IMP] sample_statement_en test: add dates on description

Co-authored-by: Marco Colombo <[email protected]>

[UPD] Update account_statement_import_txt_xlsx.pot
Translated using Weblate (Italian)

Currently translated at 64.3% (56 of 87 strings)

Translation: bank-statement-import-14.0/bank-statement-import-14.0-account_statement_import_txt_xlsx
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-14-0/bank-statement-import-14-0-account_statement_import_txt_xlsx/it/

Translated using Weblate (Italian)

Currently translated at 73.5% (64 of 87 strings)

Translation: bank-statement-import-14.0/bank-statement-import-14.0-account_statement_import_txt_xlsx
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-14-0/bank-statement-import-14-0-account_statement_import_txt_xlsx/it/

Translated using Weblate (Italian)

Currently translated at 98.8% (86 of 87 strings)

Translation: bank-statement-import-14.0/bank-statement-import-14.0-account_statement_import_txt_xlsx
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-14-0/bank-statement-import-14-0-account_statement_import_txt_xlsx/it/
Currently translated at 100.0% (87 of 87 strings)

Translation: bank-statement-import-14.0/bank-statement-import-14.0-account_statement_import_txt_xlsx
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-14-0/bank-statement-import-14-0-account_statement_import_txt_xlsx/it/
Currently translated at 100.0% (87 of 87 strings)

Translation: bank-statement-import-14.0/bank-statement-import-14.0-account_statement_import_txt_xlsx
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-14-0/bank-statement-import-14-0-account_statement_import_txt_xlsx/es_AR/

account_statement_import_txt_xlsx 14.0.1.0.1
[UPD] Update account_statement_import_txt_xlsx.pot

[UPD] README.rst
Currently translated at 100.0% (87 of 87 strings)

Translation: bank-statement-import-15.0/bank-statement-import-15.0-account_statement_import_txt_xlsx
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-15-0/bank-statement-import-15-0-account_statement_import_txt_xlsx/it/
…r IN and OUT

[IMP] account_statement_import_txt_xlsx: wizard: amount2_reverse boolean field, with tests
… to column numbers, and concatenation

A new field 'File does not contain header line' is added in the Statement Sheet Mappings. If you set to True,
then you can map the columns by indicating in each field of the 'Columns' section the column number in the file.

We also allow to concatenate multiple columns in the file to a single column to a single field of the statement line.
You have to indicate the names of the columns separated by comma.
…ot provided in the import file

[UPD] Update account_statement_import_txt_xlsx.pot

account_statement_import_txt_xlsx 15.0.2.0.0

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-statement-import-15.0/bank-statement-import-15.0-account_statement_import_txt_xlsx
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-15-0/bank-statement-import-15-0-account_statement_import_txt_xlsx/
…ping

account_statement_import_txt_xlsx 15.0.2.0.1
If there is a problem parsing the file we are not showing the error
to the user, instead a generic message telling something is wrong
with the type of file is shown, and we only showing the error if
we are running unit tests.

In this case we think is good to show the error to the user, this
way they can check what is wrong and fix it in the sheet mapping.

* We are only showing the title of the error as a HINT, we think that is
  a good start to undestand what needs to change in the sheet mapping.
* The complete traceback error is shown in the log if we needed for more
  detail review from the technical teams.
Currently translated at 74.4% (73 of 98 strings)

Translation: bank-statement-import-15.0/bank-statement-import-15.0-account_statement_import_txt_xlsx
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-15-0/bank-statement-import-15-0-account_statement_import_txt_xlsx/it/
Currently translated at 98.9% (97 of 98 strings)

Translation: bank-statement-import-15.0/bank-statement-import-15.0-account_statement_import_txt_xlsx
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-15-0/bank-statement-import-15-0-account_statement_import_txt_xlsx/es/
- Depending on the installed set of modules, the company currency may
  be USD or EUR. If the second case, these tests will fail, so we make
  sure that the company currency is USD for our tests, doing the change
  by SQL, as there's a Python constraint that prevents it.

Not needed in v17 due to: odoo/odoo#107113.

account_statement_import_txt_xlsx 15.0.2.0.2

[UPD] Update account_statement_import_txt_xlsx.pot

account_statement_import_txt_xlsx 15.0.2.0.3

[UPD] README.rst

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-statement-import-15.0/bank-statement-import-15.0-account_statement_import_txt_xlsx
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-15-0/bank-statement-import-15-0-account_statement_import_txt_xlsx/
[IMP] add csv meta data management
[FIX] exclude footer meta data
[IMP] import separated credit/debit column file
[FIX] make comptatible with new version of multi_step_wizard module & add migration file
[FIX] all not provided value are handled in_parse_decimal method
[REF] Remove unnecessary \n

Renamed to account_statement_import_sheet_file

Co-authored-by: zaoral
mileo and others added 15 commits February 4, 2025 08:44
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-statement-import-17.0/bank-statement-import-17.0-account_statement_import_sheet_file
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_sheet_file/
Currently translated at 100.0% (99 of 99 strings)

Translation: bank-statement-import-17.0/bank-statement-import-17.0-account_statement_import_sheet_file
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_sheet_file/it/
Currently translated at 100.0% (99 of 99 strings)

Translation: bank-statement-import-17.0/bank-statement-import-17.0-account_statement_import_sheet_file
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_sheet_file/zh_CN/
Currently translated at 100.0% (99 of 99 strings)

Translation: bank-statement-import-17.0/bank-statement-import-17.0-account_statement_import_sheet_file
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_sheet_file/zh_CN/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-statement-import-17.0/bank-statement-import-17.0-account_statement_import_sheet_file
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_sheet_file/
Currently translated at 100.0% (104 of 104 strings)

Translation: bank-statement-import-17.0/bank-statement-import-17.0-account_statement_import_sheet_file
Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_sheet_file/it/
@feg-adhoc feg-adhoc force-pushed the 18.0-mig-account_statement_import_sheet_file branch 6 times, most recently from 96e41c7 to 00f7713 Compare February 4, 2025 14:41
@feg-adhoc feg-adhoc force-pushed the 18.0-mig-account_statement_import_sheet_file branch from 00f7713 to 9d48f60 Compare February 4, 2025 14:43
@feg-adhoc
Copy link
Author

Hello @tate11 ! Thank you for your feedback. Could you please specify how the file you used for testing is structured and how the mapping is configured? I am unable to reproduce the error.

@tate11
Copy link

tate11 commented Feb 4, 2025

Hello @tate11 ! Thank you for your feedback. Could you please specify how the file you used for testing is structured and how the mapping is configured? I am unable to reproduce the error.

In Turkey, the date is used as day/month/year. It gives an error while importing like this.

@feg-adhoc
Copy link
Author

@tate11 You need to change the mapping configuration and set the timestamp format field to %d/%m/%Y, and it will work correctly.

@tate11
Copy link

tate11 commented Feb 4, 2025

@tate11 You need to change the mapping configuration and set the timestamp format field to %d/%m/%Y, and it will work correctly.
#747 (comment)
I tried this when we opened the issue .I opened this issue on top of that.
If you want, I can put the sample bank CSV file here.

@feg-adhoc
Copy link
Author

Hello @tate11 getting back to this… The tests you ran, were they done before the latest code changes? If so, it might be worth checking again with the updated version. Also, could you please share the sample bank CSV file? That would help me take a closer look.

@tate11
Copy link

tate11 commented Feb 26, 2025

Screenshot 2025-02-26 at 09-55-43 BNK1 sample bank statement-01 xls

Hello @tate11 getting back to this… The tests you ran, were they done before the latest code changes? If so, it might be worth checking again with the updated version. Also, could you please share the sample bank CSV file? That would help me take a closer look.

Thank you very much I tested the latest status today and it works.
Screenshot 2025-02-26 at 09-58-11 BNK1 sample bank statement-01111.xls

else None
)

if currency != currency_code:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if currency != currency_code:
if currency.lower() != currency_code.lower():

Avoid skipping lines just because 'eur' != 'EUR'
Ref.: #764

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.